package com.itbaizhan.shopping_goods_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itbaizhan.shopping_common.pojo.Goods;
import com.itbaizhan.shopping_common.pojo.GoodsDesc;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper extends BaseMapper<Goods> {
    void addGoodsAndOption(@Param("goodsId") long goodsId,@Param("optionId") long optionId);

    Goods findById(long id);

    void deleteGoodsOption(long id);

    // 查询所有商品详情
    List<GoodsDesc> findAll();

    GoodsDesc findDesc(Long id);

}
